package com.wanxi.variable;

public class MyVariable {
    int f;
    public static void main(String[] args) {
        //= 叫做赋值
//        数据类型   标识符  =  变量值;
//        将 15000赋值给变量salary
        int salary = 15000;
        System.out.println(salary);
        salary = 18000;
        System.out.println(salary);


//        数据类型  变量名  =  变量值
        int age = 11;
        System.out.println(age);
        int a = 10, b = 0, c, d = 10;
        System.out.println(a);
        System.out.println(b);
        {
            int e=0;
            System.out.println(e);
        }
//        System.out.println(e);
        new MyVariable().aa();
    }
    public void aa(){
        System.out.println("类里面的变量f的值："+f);
//        System.out.println(b);
    }
}
